﻿/*********************************************************************************
 *Author:         OnClick
 *Version:        1.0
 *UnityVersion:   2018.3.11f1
 *Date:           2019-04-15
 *Description:    IFramework
 *History:        2018.11--
*********************************************************************************/
using UnityEngine;

namespace IFramework
{
    public class ABCollectWindowLeftMenu : IEditorGUI
    {
        public override void OnGUI(Rect rect, Rect worldRect)
        {
            base.OnGUI(rect, worldRect);
            DrawBackGround(new Rect(-1, -5, rect.width, rect.height));
            DrawArea(() => {
                Label("BuildSetting");
                Label("-----------------------");
                Label("AssetBundle OutPath:");
                Label("Assets/../AssetBundles");
                Label("-----------------------");
                Label("Manifest FilePath:");
                Label(ABTool.ManifestPath);
                Label("-----------------------");
                Label("\nCollectPath FilePath:");
                Label(ABTool.CollectPath);
                Label("-----------------------");
                Space(10);
                Label("LoadSetting In Editor");
                Label("Load From AB or Editor");
                Label("AB=true");
                ABTool.ActiveBundleMode = GUILayout.Toggle(ABTool.ActiveBundleMode, "LoadMode");

            }, new Rect(0, 5, 200, rect.height));
        }
    }
}
